import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

//导入对应的路由组件
import HomeContainer from '@/components/tabbar/HomeContainer'
import MemberContainer from '@/components/tabbar/MemberContainer'
import ShopcarContainer from '@/components/tabbar/ShopcarContainer'
import SearchContainer from '@/components/tabbar/SearchContainer'
import NewsList from '@/components/news/NewsList'



//
export default new Router({
  routes: [
    { path: '/',redirect:'/home' },
    { path: '/home',component: HomeContainer },
    { path: '/member', component: MemberContainer },
    { path: '/shopcar', component: ShopcarContainer },
    { path: '/search', component: SearchContainer },
    { path: '/home/newslist', component: NewsList }
    // { path: '/one', component: One }
  ],
  linkActiveClass:'mui-active'
})
